package com.ys.nms.module.business.controller.admin.alerts.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 报警 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AlertsRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6216")
    @ExcelProperty("ID")
    private Integer id;

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15704")
    @ExcelProperty("设备ID")
    private Integer deviceId;

    @Schema(description = "对应的规则ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9672")
    @ExcelProperty("对应的规则ID")
    private Integer ruleId;

    @Schema(description = "报警状态0已解决1未解决", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("报警状态0已解决1未解决")
    private Integer state;

    @Schema(description = "0未通知1已通知", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("0未通知1已通知")
    private Integer alerted;

    @Schema(description = "0关闭1开放", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("0关闭1开放")
    private Integer open;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String note;

    @Schema(description = "报警触发时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("报警触发时间")
    private LocalDateTime timestamp;

    @Schema(description = "报警详情", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("报警详情")
    private String info;

}